﻿

namespace Mangosoft.DiceCopy.Application.MainBoundedContext.DTO.Profiles {

    using AutoMapper;
    using Mangosoft.DiceCopy.Application.MainBoundedContext.DTO;
    using Mangosoft.DiceCopy.Domain.MainBoundedContext.Aggregates.JobseekerAgg;
    using Mangosoft.DiceCopy.Domain.MainBoundedContext.Aggregates.NewsAgg;
    using Mangosoft.DiceCopy.Domain.MainBoundedContext.Aggregates.AdvertisingAgg;
    using Mangosoft.DiceCopy.Domain.MainBoundedContext.Aggregates.MaterialAgg;
    using Mangosoft.DiceCopy.Domain.MainBoundedContext.Aggregates.ResumeAgg;
    using Mangosoft.DiceCopy.Domain.MainBoundedContext.Aggregates.EducationAgg;
    using Mangosoft.DiceCopy.Domain.MainBoundedContext.Aggregates.CoverLetterAgg;

    class JobHuntingProfile : Profile {
        protected override void Configure() {
            Mapper.CreateMap<Jobseeker, JobseekerDTO>();
            Mapper.CreateMap<News, NewsDTO>();  
            Mapper.CreateMap<Advertising, AdvertisingDTO>();
            Mapper.CreateMap<Material, MaterialDTO>();

            // Resume =>ResumeDTO
            Mapper.CreateMap<Resume, ResumeDTO>();

            // Education = >EducationDTO
            Mapper.CreateMap<Education, EducationDTO>();

            Mapper.CreateMap<CoverLetter, CoverLetterDTO>();

        }
    }
}
